package com.androidtv.pos.utils;

import android.text.Editable;
import android.text.TextWatcher;

/**
 * Created by clerkma on 15/10/10.
 */
public class TextWatchHelp implements TextWatcher {
    public interface TextChange{
        void afterTextChanged(Editable s, final int id);
    }
    private TextChange change;
    private int id;
    public TextWatchHelp(TextChange change, int id){
        this.change=change;
        this.id=id;
    }
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    @Override
    public void afterTextChanged(Editable s) {
        change.afterTextChanged(s,id);
    }
}
